package io.kubesphere.devops.core;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.context.annotation.Configuration;

@Configuration
public class SpringContextUtilsConfiguration implements ApplicationContextAware {

    private static final Logger log = LoggerFactory.getLogger(SpringContextUtilsConfiguration.class);

    @Override
    public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
        SpringContextUtils.setContext(applicationContext);
    }

}
